<div>
  <a [routerLink]="['/']">index</a>
</div>
<div>
  <a [routerLink]="['/servicea']">servicea</a>
</div>
<div>
  <a [routerLink]="['/serviceb']">serviceb</a>
</div>
<div *ngIf="accessToken">
  <div>用户名:{{auth['user_name']}}</div>
  <button (click)="logout()">logout</button>
</div>
<div *ngIf="!accessToken">
  <button (click)="login()">login</button>
</div>
<router-outlet></router-outlet>
